//
//  JJLNetWorkManager.h
//  Code
//
//  Created by LEE on 2017/11/14.
//  Copyright © 2017年 HD. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^success)(id responseObject);
typedef void(^successWith200)(id responseObject);
typedef void(^successWithOther)(id responseObject);

typedef void(^fail)(NSError *error);
@interface JJLNetWorkManager : NSObject


/**
 *发起请求
 */
+(void)getData:(NSString *)url params:(NSMutableDictionary *)params successWith200:(successWith200)successWith200 successWithOther:(successWithOther)successWithOther fail:(fail)fail;

/**
 *发起请求
 */
+(void)getData:(NSString *)url params:(NSMutableDictionary *)params successWith200:(successWith200)successWith200  fail:(fail)fail;

/**
 *判断有无网络
 */
+ (BOOL)internetAvailable;
@end
